home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / pctv3n2.zip / RTCBIOS.H < prev    next >
C/C++ Source or Header  |  1992-04-16  |  774b  |  29 lines

  1. /* RTCBIOS.H
  2.  * Definitions for RTCBIOS.C */
  3.  
  4. /* Time structure used by GetRTCtime, SetRTCtime and SetAlarm */
  5. struct RTCTIME {
  6.     unsigned int Hour;
  7.     unsigned int Min;
  8.     unsigned int Sec;
  9.     unsigned int Daylight;
  10. };
  11.  
  12. /* Date structure used by GetRTCDate and SetRTCDate */
  13. struct RTCDATE {
  14.     unsigned int Century;
  15.     unsigned int Year;
  16.     unsigned int Month;
  17.     unsigned int Day;
  18. };
  19. int SetWait (long ms, unsigned char far *Flag);
  20. void CancelWait (void);
  21. int Wait (long ms);
  22. int GetRTCtime (struct RTCTIME far *Time);
  23. int SetRTCtime (struct RTCTIME *Time);
  24. int GetRTCdate (struct RTCDATE far *Date);
  25. int SetRTCdate (struct RTCDATE *Date);
  26. int SetAlarm (struct RTCTIME *Time,
  27.          void interrupt (*AlarmInt)());
  28. void ClearAlarm (void);
  29.